﻿@{
    ViewData["Title"] = "Home Page";
}
@model Book;
<div class="container mt-5">
    <div class="row">
        <div class="col-md-3">
            <!-- 小说图片 -->
            <img src="~/@Model.CoverImage" class="img-fluid" alt="小说图片">
        </div>
        <div class="col-md-9">
            <!-- 小说信息 -->
            <h2>@Model.Title</h2>
            <p>作者: <span class="text-muted">@Model.Author</span></p>
            <p>上传人: <span class="text-muted">@Model.UploadedBy.Nickname</span></p>
            <p>描述: <span class="text-muted">@Model.Description</span></p>
            <!-- 目录列表 -->
            <h3>目录列表</h3>
            <ul class="list-group">
                @foreach (var chapter in Model.Chapters)
                {
                    <li class="list-group-item"><a asp-controller="Book" asp-action="TxtBookContent" asp-route-chapterId="@chapter.ChapterId">@chapter.ChapterName</a></li>
                }
            </ul>
        </div>
    </div>
</div>
